import QtQuick 2.15
import QtQuick3D 1.15

Node {
    id: node

    property alias posX: node.x
    property alias posY: node.y
    property alias posZ: node.z

    property alias rotationX: node.eulerRotation.x
    property alias rotationY: node.eulerRotation.y
    property alias rotationZ: node.eulerRotation.z

    property alias scaleX: node.scale.x
    property alias scaleY: node.scale.y
    property alias scaleZ: node.scale.z

    property var diffuseColor: "#ffffffff"
    property var src: ""//"meshes/car.mesh"

    Model {
        id: model
        source: node.src

        DefaultMaterial {
            id: defaultMaterial_material
            diffuseColor: node.diffuseColor
        }
        materials: [
            defaultMaterial_material
        ]
    }
}
